package com.zj.order.client;

import com.zj.order.model.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program cloud-demo
 * @description:
 * @author: zhangbo
 * @create: 2022/02/03 19:40
 */
@FeignClient("userservice")
public interface UserClient {

    @GetMapping("/user/query")
    UserDto findById(@RequestParam Long id);
}
